package pro.shushi.pamirs.hr.api.model.eam;

import pro.shushi.pamirs.boot.base.ux.annotation.view.UxDetail;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxForm;
import pro.shushi.pamirs.hr.api.enums.BooleanConstantEnum;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.IdModel;

// 模型中UX开头的注解(UxForm/UxTable/UxDetail等)可以不用写，都可在设计器中进行可视化配置; 代码里面写这些注解是为了默认页面的交互
@UxForm(grid = 3)
@UxDetail(grid = 3)
@Model.model(EamUkDtPlaneness.MODEL_MODEL)
@Model(displayName = "刮刀保养平整度明细表")
@Model.Advanced(table="eam_uk_dt_planeness",unique = {"orgCode, ukCode,seq,planenessPoint"})
public class EamUkDtPlaneness extends IdModel {

    public static final String MODEL_MODEL = "hr.simple.eamUkDtPlaneness";

    @Field(displayName = "组织编码", invisible = true)
    private String orgCode;

    @Field(displayName = "保养单编码", invisible = true)
    public String ukCode;

    @Field.Integer
    @Field(displayName = "序号",  invisible = true)
    public Integer seq;

    @Field.Integer
    @Field(displayName = "点数",   required = true,defaultValue = "0")
    public Integer planenessPoint;

    @Field.Enum(size = 1)
    @Field(displayName = "测试点A", required = true, defaultValue = "n")
    public BooleanConstantEnum pointA;

    @Field.Enum(size = 1)
    @Field(displayName = "测试点B", required = true, defaultValue = "n")
    public BooleanConstantEnum pointB;

    @Field.Enum(size = 1)
    @Field(displayName = "测试点C", required = true, defaultValue = "n")
    public BooleanConstantEnum pointC;

    @Field.Enum(size = 1)
    @Field(displayName = "测试点D", required = true, defaultValue = "n")
    public BooleanConstantEnum pointD;

    @Field.Enum(size = 1)
    @Field(displayName = "测试点E", required = true, defaultValue = "n")
    public BooleanConstantEnum pointE;

    @Field.Text
    @Field(displayName = "备注")
    private String remark;


}
